<template>
    <div class="header">
        <div class="header-left">
            <!-- <span class="iconfont icon-jiantou">&#xe624;</span> -->
            返回
        </div>
        <div class="header-input">
            <!-- <span class="iconfont">&#xe632;</span> -->
            输入城市/景点/主题
        </div>
        <div class="header-right">
            {{this.city}}
            <div class="triangle"></div>
        </div>
    </div>
</template>

<script>
export default {
  name: 'HomeHeader',
  props: {
    city: String
  }
}
</script>

<style lang="stylus" scoped>
     @import '~styles/varibles.styl'
    .header
        display:flex
        height: .86rem
        line-height: .86rem
        background: $bgColor
        color: #fff
        .head-left
            width: .64rem
            padding-left: .10rem
            float:left
        .header-input
            flex: 1
            margin-top: .12rem
            height: .64rem
            line-height: .64rem
            margin-left: .2rem
            background: #fff
            border-radius: .1rem
            color: #ccc
        .header-right
            width: 1.24rem
            float: right
            text-align: center
            position: relative
            .triangle
                position: absolute
                width: 0
                height: 0
                right: 0
                top: .32rem
                border: .16rem solid #ccc;
                border-left: .16rem solid transparent;
                border-right: .16rem solid transparent;
                border-bottom: .16rem solid transparent;
</style>
